<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>Switch -SFX[name] - create self-extracting archive</TITLE>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<OBJECT TYPE="application/x-oleobject" CLASSID="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">

	<PARAM NAME="Keyword" VALUE="Switches: -SFX[name] - create self-extracting
archive">
</OBJECT>

<P class="title"><A NAME="HELPSwSFX"></A>Switch <B>-SFX[name]</B>
-  create self-extracting archive<hr></P>

<P>If this switch is used when creating a new archive, a <A HREF="HELPArcSFX.htm">
self-extracting archive (SFX)</A> will be created. By default WinRAR
uses as its SFX module the file <A HREF="HELPGUISFX.htm">Default.SFX</A>
for RAR archives and <A HREF="HELPGUISFX.htm">Zip.SFX</A> for ZIP archives.
These modules must be in the same folder as winrar.exe. It is possible
to specify in the "-sfx" switch an alternate SFX module name.</P>

<P>Shell mode equivalent of this switch is the "Create SFX archive"
option in the <A HREF="HELPGetArcName.htm">Archive name and parameters</A>
dialog.</P>

<h1><B>Examples</B></h1>

<ol>
  <li> create self-extracting solid volumes</li>
</ol>
<blockquote>
  <p class="sample">WinRAR a -sfx -v360 -s Games</p>
</blockquote>
<ol start="2">
  <li> create archive using <A HREF="HELPConsoleSFX.htm">WinCon.SFX</A>
    module</li>
</ol>
<blockquote>
  <p class="sample">WinRAR a -sfxWinCon.SFX Gift.rar</p>
</blockquote>
<P>See also <A HREF="HELPCmdS.htm"><B>s[name]</B></A> command.</P>


</BODY>
</HTML>
